package com.jvtd.eyl.bean.http;

import com.jvtd.eyl.bean.binding.BookBean;

/**
 * 我的书架实体
 *
 * 作者:chenlei
 * 时间:2018/11/15 1:19 PM
 */
public class MyBookBean {
    /**
     * id : 3
     * user_id : 1
     * periodical_id : 3
     * documentperiodical :
     */

    private String id;//我的书架ID
    private String user_id;//用户ID
    private String periodical_id;//期刊ID
    private BookBean documentperiodical;//书籍信息
    private String dtitle;//期刊标题
    private boolean isEmpty = false;//是否为空数据

    public void setEmpty(boolean empty) {
        isEmpty = empty;
    }

    public boolean isEmpty(){
        return isEmpty;
    }

    public String getDtitle() {
        return dtitle;
    }

    public void setDtitle(String dtitle) {
        this.dtitle = dtitle;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }

    public String getPeriodical_id() {
        return periodical_id;
    }

    public void setPeriodical_id(String periodical_id) {
        this.periodical_id = periodical_id;
    }

    public BookBean getDocumentperiodical() {
        return documentperiodical == null ? new BookBean() : documentperiodical;
    }

    public void setDocumentperiodical(BookBean documentperiodical) {
        this.documentperiodical = documentperiodical;
    }

    @Override
    public String toString() {
        return "MyBookBean{" +
                "id='" + id + '\'' +
                ", user_id='" + user_id + '\'' +
                ", periodical_id='" + periodical_id + '\'' +
                ", documentperiodical=" + documentperiodical +
                ", dtitle='" + dtitle + '\'' +
                ", isEmpty=" + isEmpty +
                '}';
    }
}
